package com.jic.member.controller.manage;

import com.jic.common.base.vo.RestResult;
import com.jic.member.entity.TripNodeTemplateEntity;
import com.jic.member.response.TripNodeTemplateEntityResponse;
import com.jic.member.service.TripNodeTemplateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 节点模板
 * @author wwb
 */
@Slf4j
@Api(tags = "节点模板")
@RestController
@RequestMapping("/tripNodeTemplate")
public class TripNodeTemplateController {

    @Resource
    private TripNodeTemplateService tripNodeTemplateService;

    @ApiOperation("查询所有模板信息列表")
    @PostMapping("/getAllNodeTemplate")
    @ResponseBody
    public RestResult<List<TripNodeTemplateEntityResponse>> getAllNodeTemplate(@RequestBody TripNodeTemplateEntity tripNodeTemplateEntity){
        return tripNodeTemplateService.getAllNodeTemplate();
    }



}
